package com.yun.lib.utils;

import android.text.TextUtils;

/**
 * Created by Administrator on 2016/11/16.
 */

public class StringUtils {
    public static String getStringNoNull(String str) {
        return str == null ? "" : str;
    }

    public static double getDoubleNoNull(String str) {
        return str == null || TextUtils.isEmpty(str) ? 0 : Double.valueOf(str);
    }


}
